<template>
<el-avatar>{{isSender ? accountStore.user.name[0] : contact.user.name[0]}}</el-avatar>
</template>

<script>
import {useAccountStore} from "@/stores/account";
export default {
  name: "SenderEle",
  props: {
    isSender: {
      type: Boolean,
      default: false
    },
    contact: {
      type: Object,
    }
  },
  data() {
    return {
      accountStore: useAccountStore(),
    };
  }
}
</script>

<style scoped>

</style>